package com.jiangyao.common.enums;

public enum TaskStatus {

    /**
     * status: 0=完成,1=暂存,2=进行中
     */
    COMPLETE(0, "完成"),
    DRAFT(1, "暂存"),
    PROCESSING(2, "进行中"),
    CANCELED(3, "已撤销"),
    REJCETED(4, "未通过");

    private Integer code;

    private String desc;

    TaskStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
